package com.cjw.campus.system.service.impl;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.cjw.campus.system.entity.QuestionsTable;
import com.cjw.campus.system.mapper.QuestionsTableMapper;
import com.cjw.campus.system.service.IQuestionsTableService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.cjw.campus.system.vo.QuestionsTableVO;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 * 提问表 服务实现类
 * </p>
 *
 * @author cjw
 * @since 2023-03-06
 */
@Service
public class QuestionsTableServiceImpl extends ServiceImpl<QuestionsTableMapper, QuestionsTable> implements IQuestionsTableService {

    @Override
    public List<QuestionsTableVO> getByQuestionsId(Integer questionsId) {
        return baseMapper.getByQuestionsId(questionsId);
    }

    @Override
    public IPage<QuestionsTableVO> listDescPageByQuestions(IPage<QuestionsTableVO> page) {
        return baseMapper.listDescPageByQuestions(page);
    }

}
